/**
 * 汪孟苹
 */
define(["jquery","bbcare","as/app/growth/growthAdd.servers","as/app/growth/growthAdd.event"],function($,$bb,$servers,$event) {
    var growthAdd = {};

    growthAdd.init = function(){
    	// 搜索
    	$("#toSearch").unbind("click");
    	$("#toSearch").click($event.search);
    	$("#search").unbind("input propertychange");
    	$("#search").bind("input propertychange",$event.search);
    	// 输入
    	$("#weight,#height,#head").unbind("input propertychange");
    	$("#weight,#height,#head").bind("input propertychange",$event.input);
    	// 提交
    	$("#submit").unbind("click");
    	$("#submit").click($event.onSubmit);
    }

    return growthAdd;
});